package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author susi
 */
@Mapper
public interface PaymentDao {
    //使用mybatis新增操作返回值一般都是int 配合PaymentDaoMapper.xml中的useGeneratedKeys属性使用,新增成功返回
    //自动生成的主键id(大于0)
    public int create(Payment payment);
    public Payment getPaymentById(@Param("id") Long id);
}
